default attributes copied to attributes when attributes parameter is undefined