fixed double click bug