bug fixed when freeing the memory allocated if ppm-marker or ppt-marker is used