Fit doesn't work with new constructor with formula