bugfixing for one day events