Fixed a few issues related to IE's 'hasLayout'