Fixed some tiles code