finally fixed the org-mode beamer error. Should have used ox-latex instead of org-latex