Fixed a hidden problem where multiple lines were created at a time.