fix some bad templates