CORE-6155: fixed a database conversion error