fixed problem with scripts