Fix reactor order and remove circular dependencies issues.