fix bug in addSlash