Fixed a bug.
Fixed a bug from writeLabel().