fixed bugs. yay being stupid