bugfix

overeager error checking in some of the utility functions resulted in
improper breaking out of said function.