bug fix for double open tags