Fixed the domain lock bug