Fixed error in generic