Fixed bug that occured when setting a base path of '/'.