Fixed losing css and js links or refresh