fix eapply.