fixed bugs in is_superuser