Fixed small bug with script compression