BUGFIX: When using constant event the system would fail with ES_ERROR_NO_REFERENCE code.