Fix bug in file release