Fix draw sprite bug.