bug fix for cube viewer js