local api fix in Chrome