Loading local json files and fixing bugs.