Fixing BSML parsing error