fixed bug in nothing detector