Updated the script for fixing the stopTime