fix a bug in finding the first key

2 jobs for main