fix issue with multiple sprites