fixed a bug in demo to prevent showing off negative pattern