Bugfix: fit() now uses dictionary for the parameters again