fix user locked bug