Fix bug in filter when mulitple class use the same attributes