Bugfixes for running client in IE