fixed bug about sprites