Resolved issues regarding corrupted files

- At least everything I could notice