fixed abug in the desktop side. bug was related to creating events