Fix script not getting executed