Fixed expanding positional parameters which do not start from 0

@hason please also align `=` signs and avoid overwriting variables