bugfix case-sensitivity of input type