Corrected some stupid mistakes