Check bug to finish the execution of the script