fixes #3821 Plugin menu's are lost after page refresh in development