Wrong type fixed
Trailing slash fixed
Trailing slash fixed
Lifetime bugs fixed