fix bug for behaviour data