fix function to disable admin bar