bugfix in get_diff model on core