Fix for issue where the wrong value was being returned from overloaded methods.