fixing error on parsing empty attributes