fixed an issue where jquery function was called incorrectly
fixed an issue where the original event of an event was undefined