fixing computation of argument registers