fixed prev path issue