fixed frontend bug