fixed bug when updateWhere is null