fixed missing case in variant switch