Fixing exception in line point handling