fix a few stupid mistakes