fixing descriptor parsing