fix undispatched flag