Inspekt fixes

A bunch of fixes that I found while testing the program `inspektor