fix to bug with leading slash