fix for failing test (and failing javascript)