fix compatibility with cake 2.4.x