Fixes silent js error