fix goal calculation error.

mark inputs as required.
add min to goal input