Fix middleman issue regarding wrap_layout issue