Attempt in correcting error