fixed bug with changing time of event