fixing minor bug for Firefox