Fix key error in search table