Fixed a bug where a malformed input entry will throw an exception.