fix for symfony 2.1 according to comment in #104