Rewrite the given sentence to remove the grammar flaws:
It is really selfish if we treated the elderly badly but still want to be treated nicely when we grow old.
It is really selfish if we treat the elderly badly but still want to be treated nicely when we grow old.