small bug with user info writing