fixed minor bug with error partial