fix the unlanded esr query