Fixed crash on draw

Introduced incorrect tiles updating