Corrections on combineModels function.

Signed-off-by: Luis Lau <luis.laum@gmail.com>