Fixing user_data None error