fixed next line bug