Fixed bug from require location