Linelength bug fixed, and window fill bug fixed