fix minor mem leak