corercting bug related to motinot state timeout