fixed square line bug