Fixing a bad bug in param capture