Fix invocation errors in browser