fixed some error parsing