fix some bugs in my code