fixed little memory leak