Fix windows size bug