Fix stdout print