fix fatal in browser