Fix the problem of tiles' layout