Fixed issue with scripts calling each other