fixed error in correcting