correct a bug in research unlocking conditions