fix for line drawing