Fix logging in and NBT writing. I love typos...