fix frontend-switch