Fix parsing all scripts and loading script from stream