Fixed repeating element bug