Fixed some issue with line and point objects