Fixed typo: haveing->having