fixing bug that was keeping yaml header in the template when compiling