catch exception in DECODE_FUNC, too