Two workaronds to make dictionary compile