Fixed a bug when deleting events + waking apphb