fix a few more random errors I noticed