fix fncall max() min()