fix redundancy check

thanks chenkunyun commit the issue.