progress bar updating... fixed negative energy