[Layout]: Fixed js error