Fixed vertex size related bug in model.cpp