Fixed direct url issue, closed #45
Fixed direct url issue, closed #45