bug on loading parameters of a switching model

Reported by Kostas Theodoridis