fixed the error printing more