Fix JS error when remapping font