bug while reseting fixed