fix shorter line bug