Fix logic error in #toString().