Fixed errors on dispatcher.