Fixing the bug for WQUPC