fixes taskmanager restart