fixed async printing bug