Fixed memory release crash