fix for release check - did not quit loop when necessary