Meh, forgot to pass the userdata back on write callbacks.