fix offline template