fix error when there are missing inputs