set to object mode before unlinking: close #42