workaround for chrome focus bug. fixes #939