fix the bug in plotting bool gate. #107