Fixed bug after reseting