Fix bug in parameters to capture handler.