Bug fix: constant residuals