FIx problem with behavior being null in the object