fixed compilation error in dist js