Fix for finish script ending