fix warning in getUserObject