Fixed some saving code. Json ick.