Fixed a bug in redoing predicates.
Merge branch 'master' of https://github.com/Sebelino/scheduler-curt