Fixed preview issue and spans deleted.