added null check in 'repeat' binding