Fixed call to IllegalTypeArgument which hides the message