Fix sprite rendering order