repeated element bug