Fix default attributes bug