fixes a couple PHP Notices