small changes to optical_find

fixed a few bugs