Bug fixed: js error