Correcting the mistake of using release()