Fix IE7 display issue

Fixes #1001