fix for client code in chrome