Fixes bugs related to the usage of tiles