Fix php notices