removed some PHP-Warnings and Notices