fix parsing "-1"