FIX: issue #393 (Callback function can't be determined conditionally)