fixed problems with chai