Modified capture to sweep left and right
Bugfix