bug fixes for sprite size