Fix searchpos() flags.