fix double parsing