Small fixes

Fixing some small issues I found while navigating code. Mostly syntax.