fixed simple line bugs