Added check to make sure release is set before trying to use it.