fixed bug when changing between graphic sets with different tile size