bugfix when script is empty