Fixed big memory leak