fix to properly expand the expected html