fix bug when current_user not present