Added a fix for a weird interaction between philex and beamer

Signed-off-by: Thomas Hodgson <thomas.hodgson@gmail.com>