fixed small bugs that i made by accident