In order to fix a memory leak