fix issues with karma