Bug fix for updating of next_check_at