fix gear menu displaying multiple times