fix little bug in dispatcher