Further fixes on script priority