You must have been right about the problem being due to something being leftover from the old DB because I cannot recreate the problem anymore.
Sorry to have spotted a non-existent bug.
Jc