fixed a bug related to command key on osx