fix karma warning