Fix bug with sending wrong number of arguments to new attributes model constructor.