fixed issue with double clicking