fix diet serialization