fixed problem updating null values