Fix captures, beginCaptures, endCaptures