fixed a few bugs i made