work around js backend bug