Fix key error in detect file.