fixed bugs in model pull