Fixed some minor masterScript issues