fix for tempalate