Added some special case handling in Fisher test