Fixes serializer for sph and jlems