Fix compatibility with Phalcon 2