small fix for the finish script