model.cpp bug fixed (copy constructor)