UI: minor js error fix