fixed bug with calling function with invalid (although ignored) parameter