make compatible with phalcon 2.x fixed