Fix double click bug