(hopefully) fixed recursive captures