"get_val": fixed exceptions