Capture::uniteRect

fix a bug in Capture::uniteRect