Fixing the script because of debug settings