Fixes serialisation of single objects