Fix bug in saving Matrix cell settings