Fix wrong getObject usage