Fixed exception not being thrown.