fix some errors

Task 1752.