Fixed bug with zero models