fixing s variable problem on chrome mac