fixes in ie8
Merge pull request #3 from kirsty-hames/fixes-bug-in-ie8

fixes in ie8