add ending for #if-#else block