sprite drawing fix