fixed problems merging match and shanehtml