Fixed error message to show the correct class name.