fixes bad invocation in browser