fix motif comparison