Fixed assertion for regression
Re-introduced patch