fix bug with invalid callable invocation