fix #8: right clicks ends construction and do not draw undefined previous points