Fixed error with calling stop method.