fix location bug potentially