changes span to p
fixes viewport based delete