bug in detector number in key