fix save figure