Fixed debug flag in root template