Fixed some stupid mistakes