added parent reference to module undefined error