Parse elements inside the category
Fix some errors of the parser