Fixing double click for one-page menu bug