fixes bug in invalidate / reschedule