Fixed crash when releasing resources