fix #637 auth check for undefined class