Fix

Ternary operator fix (status group detection).