Fixing bugs on xslt