Fix prefix lookup