Fixed a bug with getInputType.