Fixed layout grid bug.