Fixed nasty improbable scheduling bug