fixed flag path in template