solved a bug that prevented tasks from reloading when switching page