implemented compatibility workaround for Chrome