fix bool and num variable return values