Fix dEntity, FlagCommand.