Fixed js bug of default lib