Improve handling of out-of-bounds releases