Bug fix Chai