fixed bug in Firefox