fix problem introduced by setting default attributes