Fix rightclick crashing Firefox