Fixed missing #enddef