Changed the behaviour to raise an error for empty GMVs