Forgotten fclose() caused crashes again. [FIXED]