Fixed bug in reloading issue