Fixed 500 error with '/' added to url