fix basic main template