Fix DEx error loop on no returns

fixes #936