fixed bug/crash in long press gesture control