Fix for invalid input error when script is ran from world during bootup.