Corrected some bugs I made.
Fixed some errors that I made while changing the file