improved fix for not fully fielled circular buffer.