fixed morphology operations
Merge pull request #2437 from ilya-lavrenov:tapi_morph