Fix dealing with bad elements