commitment controller in api fixed