Fix php erroron update after load new models. references #2054