parser writes strange null elements