Fix type:0 collisionMasks and destroy before marking