Fixes on runCobra