fix locked bug