Fixed issue #27 - record buffer not initialising