fix assets loading with rootUrl