alloy 1.4.0 automatically deletes the $model argument, make sure it is set