fixed #if closing