fixed a little bug using UMD