Bug where object handle wasn't being incremented properly