fix bug when single frame used for sprite