Firefox was not working like Chrome so I added a temporary workaround.