fixes using arg->i instead of arg->ui