fixed recap js bug