fixed bug in processing gesture