[#55648798] Fixes to the implementation for detecting 3-phase