fix storage of user_data