workaround for Chrome rem bug