Merge pull request #2300 from rpv-tomsk/fix-sread