Fixed improper parameter in exception.