fixed error with diagonal line assignment