fix partial captures