Fix a bug around attribute drawing