fixed a negative-size bug, upd tiles