Deal with the weirdnesses of ejdb.