fix the bug in parsing slash