Fixed wrong variable used in getUser function