fixed a keylogger bug