fixed bugs that were appearing for Firefox