fix printf fail