tmp fix for NS_ERROR_FAILURE in Firefox