CORE-5985: fixed a problem that was causing a "column does not exist" error