Fixing collision and cleaning tile types.