Fix wrong tile for diagonal wall in certain cases