Fixes registration of external commands.