Fixed exit early exit bug