fixed a bug in PATH assignment