fix inconsistent input contract