Fixed NOT NULL field resource to NULL