Fixed some PHP notices.