fix location loader