Fixing template mime