fix return value of find_first