Fix double release calls in document spec