fix typo and update maxent execute function