fix a few issues when using shortcuts on firefox