workaround for database consistency problem (to be fixed)