Fixed plot by pos

logical bug