fix a bug with admin checking