Fixed an issue in handleCaptureArgs()