Fixed misleading exception