minor fix for JS compat