[FIX] bug fix in QDA

Fixes #3721