fix inputs being badly formatted