fixed issue in if clause