Fix capture flip, turn it into a loop