ECMD modul did not compile due to a misssing 'endif'