fixed sprite bug