fixed JS evaluation error