Fix to plain PHP class