fixed bug initiailizing bwt demo