bugfix to be more crossbrowser
1.0.1