Fixed a line that refrenced a var that doesn't exist anymore
Fixed some minor mistakes