fixed a silly bug in ksw_extend()

Query return value is assigned to the target variable and vice versa...