fixed a bug that the scheduled jobs have never been removed from db