Fix wrong variables being used for username.