Added glitch fix for firefox