fix double execution in browser