fixed bugs I made