Fixed the line drawing coordinates