Fix sprite bug due to missing coordinate method