Fixes the js error.