Fixed #if when adding script