Bugfix due to change in cockpit internals. Fixes #1