fix NULL to NOT NULL