Fixed PHP notice bug in related module.