fix for beamer theme