[bugfix] Missing endif