fix clean macro to use the right attribute