fixed horrible bug causing memory access after last argument in 'argv[]'