Fixed a series of bugs for this dist build
Fixed a time glitch for leave time based events