fix for empty captures
Merge pull request #66 from swistaczek/master

fix for empty captures