fix fetch plan