If condtion check correction.