Fixed uninitialised dictionary bug