Prevent an error when testing in Browser