bug fix in spriteManager
merged