fixed issues with karma