fix problem of wrong default size and a bug
fix display issue of win message