fixed some printf bug