fixed postEvent error