bug fix Loader::template and UserAgent class