Filter function before restore textes