Fixed exception in class name compleiton.