fixes generator checking for Firefox