Fix error releasing