Fixed a minor ini key duplication bug
Fixed #721 and FS439