fixed error in saving pan button settings.