fix dispatch errors