Fixed serialize inputs.