Fix gravity unserialize