Fixed inputPath bug