added karma
bug fix