fix some PHP Notices and fix birthday calendar - fix #610