Fixed InputType check