fix method SetBase error

First,Thanks for your write the module, I found that the SetBase function has a small bug in use, then repair it.