fix a bug when cannon move over a sprite,the sprite is set to null.