You never remove anything from "attributes" variable, just added there more and more attributes gethered from different members. It can't work well...