CB-6976 fixes run/emulate error when it runs for the first time