Fixed some warnings in ObjectService (may reduce crashes)

change doesn't make a difference