fix issue related to reloading
Merge pull request #1 from iffyuva/reloading-stuff

fix issue related to reloading