fix some stupid mistakes