fixed small errors causing massive errors!