fixed amendment_type in amendments_for function