Fixed a bug #2892
Merge pull request #1000 from ivan-korolev:fix_sift_bug_2892