bugfix of bug introduced by js upgrade