Fixed bug in Ridge