Revert "changed condition"

This reverts commit fa332f48e9d797e08e9b1eedb3d109e6dac85f6a.