fix decode_form