Prevent NoSerializableException on user entity(#215)