Fix sprite rendering