Fixed issues with plist file manipulation