Fix calling nil error function inside module.