fixed bug with IE and FF