fix js quirk, #30643, #24047