Fixed bug causing paths to leak to the webpages