fix stjs asserts