fixing template