restore old keyguard code when make workspace