Fixes error in Animal class.