fix failing karma test