fixing minor issue with current user detection