Fix parser getTags method