Fixed problem in master script