Fixed php notices