Fix dictionary bug spotted by Mauro - thanks dude