frontend bug fix