bug fix

change the way to add behavior with array