errors fixed for Firefox