IllegalArgumentException in repeat with XBL component

... but don't know if my proposition for a fix is relevant