fixed error where not getting correct locator