Fixed plot error