Not sure, if the object user is undefined (client_mode), it will throw an error.