I found that when I changed gimli's uid from 801 to 800, that some of his files were no longer owned by gimli, but rather owned by the user called 801. The files had to be chowned back from 801 to gimli manually.
Next time I will use the usermod command instead of directly editing /etc/passwd.
I just wanted to point out this because it was unexpected and cool
Thanks to uid 1182 for helping me troubleshoot.