Add Support for Type 27
Fix the bug when # SV is a multiple of 3