fixed the not printing issue