fix "always need to unlock gesture pattern when changing library" error