correcting patch directory