fixed double-slashes issue (closes #29)