Fixed the problem with the last label being overwritten. Kind of hack-ish, but it works.