The salting only affects the column position. You should be able to adjust for that here without adding a special expression on the outer function.