Remove not null constraint. Fix #2976