fixed sprite control bug