Fix karma issue