fix useless part of condition