fixed problem with definetags inside a sprite