fix debug line drawing