fixed another bug with markup parsing