Fixed two bugs with destroying sprites.