Fix script for Firefox