fixes crash with decomposing