Fixed buffer not being set up properly on startup.