stm class: Fix stm device initialization order