Fixes issue #2

Fixes Issue #2: Captures not working at edges