wip: fix php errors.