Fixed some errors in the function value locations lookup.