json and svg save fix under firefox