[Ide] Fixed possibe out of sync exception in type system service.