Fixed instantiating Gson in loop.