bug fixing when reader path is different than the witer path