random fixes

random fixes to errors I came across