fix error in dispatcher