fix bugs with no contract, no initial data on obj creation