fixed warnings
Merge pull request #1567 from ilya-lavrenov:warn_fix