Fixed a bug where there are infinitely many activities slots in a day