fix bug with karma package