Fixed adding of scripts