karma workaround