fixed bug in firefox