error printing fix