fix frontend bug