fixed the dispatch table for functions (constructors worked ok)