Amend missing #endif directive not moved