fixed bug: double clicking issue