[[ Bug 13968 ]] Make sure looping works within selection