fix bug on loading locations file