Remove unused variables #22

Fix a line check bug