command context: fix errors when running certain commands on startup