corrected passing of ids on some links