Fix bug - error when module isn't defined.