Fix commands sequence