motif search: fixing and testing