Corrects PHP Warnings