Fixed naming for variable in applyBehaviour