bugfix for IE7; tested with IntelliJ