Resolve bad function calls.