Fixed some stuff about LOC