fixed crash when activity dates collide