fixing logic error in prototype::Logic::adjustObject