fix rules is not cleared before reloading bug
Merge pull request #5 from chenfengyuan/rules

fix rules is not cleared before reloading bug