fixed bug with firefox