fixed issue with ie8 and passed arguments being undefined