Move wrong end of endif statement.