Fix Bug: after auth

Fix the bug when the user table is empty.