fixing object references