fixing temlate