Fixed onBind if undefined