fix the bug in which prompt always goes to /