Fixed a bug that would cause events to fire at the wrong time since the initial value of some variables was wrong.
Merge pull request #7 from wGEric/develop

Fixed a bug that would cause events to fire at the wrong time since the ...