Fixing some typo bugs and addin json errr checking for save