lazy output condition bug fixed