Fix model copy bug