The first building is not allowed to be diagonally placed, which really means that the fire shard is not contributing to the problem.
I think the real bug here is that the game generates maps that allows you to build cities that would end up in such situations 