I found out that by placing 'resync catalog' in the first line of my run { ... } block and also placing it right before I release the channels everything works fine. But am I just camoflauging the real problem and is it ok to resync catalog so often? I do not totally understand what resync catalog does. Thanks.