fixes for beamer template