fixed bug in update query builder