fixed task exception

fixed problem with inverted speed