fix https://github.com/openfl/openfl/issues/365
Merge pull request #262 from shumkovdenis/master

fix https://github.com/openfl/openfl/issues/365