Fix function call when optimize for Phalcon2