Revert accidental removal of endif statement