IE and webkit fixes