Adding handler for ambiguity in select