Fixes Karma issue