fixed bug i nscript for infinity