Fixed wrong dict key messing up csvwriter

Hmm... this was supposed to reference #15