remove the context path first