Fixed error where last entry wasn't inspected. 

Also fixed a small double == typo.