Fix getArgs() implementation