Fix bug in ie 8