Fixed: the if statement is for the next line not the current!