fixed printing issue