fixed bug with default input values causing type check to fail