bug fix of replace './' to '', replace '//' to '/'