PHP 5.2 fix for load models