fix BFS_MAX
Merge branch 'shuaiwang' into rtong