bugfixes: refresh json was wrong, and new values were created as strings